<template>
  <div>
    <div class="left_nav bg-primary" style="background-color: white">
      <el-menu>
        <el-menu-item index="1" @click="toCallStudent">
          <template slot="title">
            <i class="el-icon-document-copy">
              点名
            </i>
          </template>
        </el-menu-item>
        <el-menu-item index="2" @click="toReRecord">
          <template slot="title" >
            <i class="el-icon-document">
              查看考勤
            </i>
          </template>
        </el-menu-item>
      </el-menu>
    </div>
  </div>

</template>

<script>
  export default {
    methods: {
      toCallStudent (){
        this.$router.push('/teacher/AContent')
      },
      toReRecord(){
        this.$router.push('/teacher/BContent')
      }
    }
  }
</script>

<style scoped>
  .left_nav {
    width: 15%;
    height: 1000px;
    padding: 20px;
    float: left;
  }
  .text_style {
    color: white;
    font-size: 20px;
  }

</style>
